class Mountain {
    type;
    framesize;
    image;
    pos;

    constructor() {
        this.init();
    }
    init() {
        window.game.Entity.init.apply(this, null);
        this.type = 'mountain';
        this.framesize = { x: 768, y: 1366 };
        this.image = null;

        this.pos = { x: 0, y: 0 };

        this.image = new Image();
        this.image.src = 'media/gamemountain_lores.png';
    }

    update() {

    }

    draw() {
        if (this.image.complete === true) {
            window.game.system.canvascontext.drawImage(
                this.image, //image
                0, 0, //source X,Y
                this.framesize.x, this.framesize.y, //source Size
                this.pos.x, this.pos.y, //target position
                this.framesize.x, this.framesize.y //target size
                );
        }
    }
}